// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import axios from 'axios'
import apiConfig from './config/api.config'

Vue.config.productionTip = false

axios.defaults.baseURL = apiConfig.baseUrl;// 配置接口地址
axios.defaults.withCredentials = true; //跨域是否带token
axios.defaults.crossDomain = true;
axios.defaults.timeout = 6000;
axios.defaults.headers.post['Content-Tppe'] = 'application/X-www-form-urlencoded';


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
